
import * as login from '../../sql/yxtest/login';
import * as protobuf from '../../../lib/protobuf/protobuf-msg';
import * as common from '../common-function';
import * as sql_login from '../../sql/yxtest/login';

//主服务器的消息对象类型是 msgObj:protoBufMsg.msg_base_c2s
//聊天，游戏服务器消息对象类型是 msgObj:protoBufMsg.msg_base_s2s
export function main(sessionID,msgObj:protoBufMsg.msg_base_c2s){

    sql_login.getUser(11,22,()=>{console.log("master")});
    return;
    // let classList = protobuf.getMsgProto();
    // let login =classList.login_login_c2s.decode(msgObj.msg.toArrayBuffer());
    // login.user_pass = "master";
    // let newClass = new classList.msg_base_s2c();
    // newClass.setMsgType( protoBufMsg.msg_base_type.client);
    // newClass.setMsgCode(protoBufMsg.head.msg_login_login_s2c);
    // newClass.setMsg(login.toArrayBuffer() as any);
    // common.sendClient(sessionID,newClass);



}